import request from '@/config/axios'

// 数据共享 API
export const ReportApi = {
  // 首页统计数据
  getIndexReport: async (params?: any) => {
    return await request.get({ url: `/dr/report/index`, params })
  },

  // 资源统计
  getSourceCount: async (params?: any) => {
    return await request.get({ url: `/dr/report/sourceCount`, params  })
  },
  // 使用统计
  getUseCount: async (params?: any) => {
    return await request.get({ url: `/dr/report/useCount`, params })
  },
  // 访问统计
  getVisitCount: async (params?: any) => {
    return await request.get({ url: `/dr/report/visitCount`, params })
  },
}